﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Nova_DAL;
using System.Data.Common;
using Nova_Common;
using System.Text;


public partial class Command_ReCommand : System.Web.UI.Page
{
    string strSQL = "";
    DbHelper access = new DbHelper();
    DbCommand cmd = null;
    int iFlag = 0;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            gv_Bind();
        }
    }

    protected void gv_Bind()
    {
        try
        {
            cmd = access.GetStoredProcCommond("SP_GetCMDList");
            access.AddInParameter(cmd, "@SpaceTray", DbType.Int32, 0);
            access.AddInParameter(cmd, "@TaskMode", DbType.Int32, 0);
            gv.DataSource = access.ExecuteDataSet(cmd);
            gv.DataBind();
        }
        catch (Exception ex)
        {
            Response.Write(ex.ToString());
        }
    }

    protected void ibtnReset_Click(object sender, ImageClickEventArgs e)
    {
        gv_Bind();
    }
}
